import axios from 'axios'

const get = ({url, params={}}) => {
  return new Promise((resolve, reject) => {
    axios.get(url, {
      params
    })
    .then((result) => {
      resolve(result)
    })
    .catch((error) => {
      reject(error)
    })
  })
}

export {
  get
}